package com.zsqat.eshop.product.feign;

import com.zsqat.common.utils.R;
import com.zsqat.eshop.product.fallback.SeckillFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "eshop-seckill",fallback = SeckillFeignServiceFallBack.class)
public interface SeckillFeignService {
  /**
   * 根据skuId查询商品是否参加秒杀活动
   * @param skuId
   * @return
   */
  @GetMapping(value = "/sku/seckill/{skuId}")
  R getSkuSeckilInfo(@PathVariable("skuId") Long skuId);
}
